<script type="text/javascript">
	$(document).ready(
		function(){
			initdstoffset();
		}
	);	
</script>
<?php

echo heading('Configurações do sistema', 1);

echo form_open('administrador/settings');
  echo $this->table->generate(array(
    array('', ''),
    array(
      form_label('Nome da plataforma:', 'platform_name'),
      form_input('platform_name', $settings->platform_name, 'id=platform_name')
    ),
    array(
      form_label('Nome do tema:', 'template_folder'),
      form_dropdown('template_folder', $directories, $settings->template_folder, 'id=template_folder')
    ),
    array(
      form_label('Tipo de registro:', 'register_type'),
      form_dropdown('register_type', $register_types, $settings->register_type, 'id=register_type')
    ),
    array(
      form_label('Fuso horário padrão:', 'timezone_id_default'),
      form_dropdown('timezone_id_default', $timezones, $settings->timezone_id_default, 'id=timezone_id_default')
    ),
    array(
      form_label('Diferença de horário de verão padrão:', 'dst_offset'),
      form_input('default_dst_offset', $settings->default_dst_offset, 'id=dst_offset')
    ),
    array(
      '',
      form_submit('', 'Alterar')
    )
  ));
echo form_close();
